function createINfo(){
  var arr1=['一','二','三','四']
  var arrinfo=[]
  arr1.forEach(item=>{
    let data={
      label:item+'区',
      value:item+'区',
      dicData:[]
    }
    for(var i=1;i<=20;i++){
      let obj={
        label:i+'号',
        value:i+'号',
      }
      data.dicData.push(obj)
    }
    arrinfo.push(data)
  })
  return arrinfo
}
export function optionInfo() {
  return {
    indexLabel: '序号',
    index: true,
    align: 'centenr',
    delBtn: true,//行内删除按钮
    viewBtn:true,//查看按钮
    viewTitle:'详情',
    // rowKey:行数据的Key的主键，用于其他相关操作
    excelBtn: true,//导出excel
    // menuWidth:操作菜单栏的宽度
    labelWidth: 150,
    searchMenuPosition:'right',
    filterBtn:true,
    column: [
      {
        label: '住户编号',
        prop: 'house_id',
        // searchSpan:8,
        addDisplay: false,
        align: 'center',
        editDisabled: true,
        minWidth:130,
        searchSpan:6,
        search:true
      },
      {
        label: '户主姓名',
        prop: 'house_name',
        // searchSpan:8,
        align: 'center',
        search:true,
        editDisabled: false,
        searchSpan:6,
        rules: [{
          required: true,
          message: "请输入户主姓名",
          trigger: "blur"
        }]
      },
      {
        label: '性别',
        prop: 'sex',
        // searchSpan:8,
        align: 'center',
        editDisabled: false,
        type: 'select',
        props: {
          label: 'label',
          value: 'value'
        },
        dicData:[
          {
            label:'男',
            value:1
          },
          {
            label:'女',
            value:0
          }
        ],
        rules: [{
          required: true,
          message: "请输选择性别",
          trigger: "blur"
        }]
      },
      {
        label: '民族',
        prop: 'race',
        // searchSpan:8,
        align: 'center',
        editDisabled: false,
        type: 'select',
        search:true,
        searchSpan:6,
        props: {
          label: 'label',
          value: 'value'
        },
        dicData:[
          {
            label:'土家族',
            value:'1'
          },
          {
            label:'汉族',
            value:'2'
          }
        ],
        rules: [{
          required: true,
          message: "请输选择民族",
          trigger: "blur"
        }]
      },
      {
        label: '楼栋/单元',
        prop: 'house_numLD',
        // searchSpan:8,
        align: 'center',
        type:'cascader',
        editDisabled: false,
        minWidth:100,
        props: {
          label: 'label',
          value: 'value',
          children:'dicData'
        },
        dicData:[
          {
            label: '一栋',
            value: '1',
            dicData:[
              {
                label: '一单元',
                value: '1-1',
              },
              {
                label: '二单元',
                value: '1-2',
              }
            ]
          },
          {
            label: '二栋',
            value: '2',
            dicData:[
              {
                label: '一单元',
                value: '2-1',
              },
              {
                label: '二单元',
                value: '2-2',
              }
            ]
          }
        ],
        rules: [{
          required: true,
          message: "请选择楼栋/单元",
          trigger: "blur"
        }]
      },
      {
        label: '门牌号',
        prop: 'house_num',
        // searchSpan:8,
        align: 'center',
        editDisabled: false,
        rules: [{
          required: true,
          message: "请输入门牌号",
          trigger: "blur"
        }]
      },
      {
        label: '手机号',
        prop: 'phone',
        // searchSpan:8,
        align: 'center',
        editDisabled: false,
        search:true,
        minWidth:100,
        rules: [{
          required: true,
          message: "请输入手机号",
          trigger: "blur"
        }]
      },
      {
        label: '身份证',
        prop: 'idno',
        searchSpan:8,
        align: 'center',
        editDisabled: false,
        search:true,
        minWidth:150,
        rules: [{
          required: true,
          message: "请输入身份证",
          trigger: "blur"
        }]
      },
      {
        label: '住户人数',
        prop: 'house_sum',
        // searchSpan:8,
        align: 'center',
        editDisabled: false,
        search:true,
        rules: [{
          required: true,
          message: "请输入住户人数",
          trigger: "blur"
        }]
      },
      {
        label: '入住时间',
        prop: 'jointime',
        // searchSpan:8,
        align: 'center',
        editDisabled: false,
        type: "date",
        minWidth:120,
        format: "yyyy-MM-dd",
        valueFormat: "yyyy-MM-dd",
        rules: [{
          required: true,
          message: "请选择入住时间",
          trigger: "blur"
        }]
      },
      {
        label: '育苗接种情况',
        prop: 'vaccination',
        searchSpan:7,
        searchLabelWidth:100,
        align: 'center',
        editDisabled: false,
        search:true,
        type: 'select',
        width:120,
        props: {
          label: 'label',
          value: 'value'
        },
        dicData: [
          {
            label: '已接种',
            value: 1
          },
          {
            label: '接种部分',
            value: 2
          },
          {
            label: '未接种',
            value: 3
          }
        ],
        rules: [{
          required: true,
          message: "请选择育苗接种情况",
          trigger: "blur"
        }]
      },
      {
        label: '籍贯',
        prop: 'birthplace',
        // searchSpan:8,
        align: 'center',
        value:'贵州',
        editDisabled: false,
      },
      {
        label: '车辆数',
        prop: 'house_vehicleSum',
        // searchSpan:8,
        align: 'center',
        editDisabled: false,
      },
      {
        label: '备注',
        prop: 'house_remark',
        // searchSpan:8,
        align: 'center',
        editDisabled: false,
        type:'textarea'
      }
    ]
  }
}